<?php

/*
 * This is to edit vaccine data.
 */
include '../../include/config.php';
mysql_query("update me_user_vaccins set vcc_name= '".$_POST['vcc_name']."',first_vaccin = '".$_POST['first_vaccin']."', recall_date ='".date('Y-m-d', strtotime($_POST['recall_date']))."', date_2_recall='".date('Y-m-d', strtotime($_POST['date_2_recall']))."', date_3_recall = '".date('Y-m-d', strtotime($_POST['date_3_recall']))."' where uid='".$_COOKIE['gid']."' and sr='".$_POST['sr']."'  ");
echo 'updated';
header('Location:../view/Vaccinations');
?>
